package com.javaee.wordtree.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "story_pages", autoResultMap = true)
public class StoryPage {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long templateId;
    private Integer pageNumber;
    private Long parentPageId;
    private Integer choiceIndex;
    private String englishContent;
    private String chineseContent;
    private String sceneImageBase64;
    
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> choices;
    
    private Boolean isEnding;
    private LocalDateTime createdAt;
}